package com.health.system.javacommon.util;

import java.util.*;

public class ResourceBundleImp {
	
    private static ResourceBundle resourceBundle = null;

    /**
     * 获得关键字的值
     * @param key String 关键字
     * @return String 值
     */
    public static String getValue(String key) {
        if(resourceBundle==null) {
            instantiation();
        }
        return resourceBundle.getString(key);
    }

    /**
     * 实例化配置文件
     */
    public static void instantiation() {
        resourceBundle = ResourceBundle.getBundle("config");
    }

}
